package com.fms.controllers.form8;

import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;


import java.io.IOException;
import java.io.Reader;
import java.sql.SQLException;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.model.Model;

public class AcknowledgementReceipt extends WebPage {
	
	Reader reader = Resources.getResourceAsReader("sqlMapConfig.xml");
	SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
	
	private Model dateModel = new Model();
	private Model amountModel = new Model();
	private Model venueModel = new Model();
	private Model dateOfModel = new Model();
	private Model workDoneModel = new Model();
	private Model payeeModel = new Model();
	private Model officerModel = new Model();
	private Model adviserModel = new Model();
	
	public AcknowledgementReceipt() throws IOException, SQLException{
		
		TextField date = new TextField("date",dateModel);
		TextField amount = new TextField("amount",amountModel);
		TextField venue = new TextField("venue",venueModel);
		TextField dateOf= new TextField("dateOf",dateOfModel);
		TextField workDone = new TextField("workDone",workDoneModel);
		TextField payee = new TextField("payee",payeeModel);
		TextField officer = new TextField("officer",officerModel);
		TextField adviser = new TextField("adviser",adviserModel);
		
	}

}
